-include mk.add

src = $(wildcard src/*.c)
obj = $(src:.c=.o)

bin = $(name)

warn = -Wall -Wno-strict-aliasing

CC = gcc
CFLAGS = -pedantic $(warn) $(dbg) $(opt) -Isrc $(add_cflags)
LDFLAGS = -rdynamic $(add_ldflags)

$(bin): $(obj)
	$(CC) -o $@ $(obj) $(LDFLAGS)

.PHONY: clean
clean:
	rm -f $(obj)

PHONY: distclean
distclean:
	rm -f $(obj) $(bin) Makefile config.status
